<%@ taglib uri="/WEB-INF/tld/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/tld/c.tld" prefix="c"%>
<%@ taglib uri="/WEB-INF/tld/struts-bean.tld" prefix="bean"%>
<%@ taglib uri="/WEB-INF/tld/taglibs-string.tld" prefix="str"%>

<%@ page import="java.util.*"%>

<!-- Start of main content -->
<div id="content">
<div id="main-wrapper">
<p class="welcome"><strong><bean:message key="homelogged.label.welcome" />
&nbsp;
<c:out	value="<%=(session.getAttribute("utente"))%>" />!</strong> </p>
<br class="clearall" />
<br />
<h2><bean:message key="homelogged.label.list" /></h2>
<div id="bluebox">
<div id="boxleft">
<p><bean:message key="homelogged.label.selectaction" /></p>
<ul class="biglist">
	<li class="icon-view"><a
		href="<c:url value="/list/show_list.do"/>"><bean:message
		key="homelogged.label.editg" /></a></li>

	<c:forEach var="listElement" items="${requestScope.services}">
		<li class="icon-view"><a
			href="<c:out value="${listElement.script}"></c:out>"> <c:out
			value="${listElement.name}"></c:out> </a></li>
	</c:forEach>
</ul>
</div>
<div id="boxright">
<p><bean:message key="homelogged.label.todo" /></p>
<ul class="littlelist">

	<li><a href="<c:url value="/user/show_edit_profile.do"/>"><bean:message
		key="homelogged.label.editp" /></a></li>
	<li><a href="<c:url value="/gift/share_list.do"/>"><bean:message
		key="homelogged.label.share_list" /></a></li>
		
<c:forEach var="listElement" items="${requestScope.services_dx}">
		<li ><a
			href="<c:out value="${listElement.script}"></c:out>"> <c:out
			value="${listElement.name}"></c:out> </a></li>
	</c:forEach>

</ul>
</div>
</div>
<!-- Closes #bluebox -->

<div class="hr">
<hr />
</div>

<html:form method="post" action="/frontoffice/search_user.do"
	styleId="searchform">
	<fieldset><label for="search-field"> <bean:message
		key="homelogged.label.search" /> </label> <html:text property="user"
		styleId="search-field" styleClass="textfield" value=""></html:text> <html:submit
		styleClass="img-btn"></html:submit></fieldset>
</html:form>


<div id="whatsnew">
<div id="news">
<h3><bean:message key="homelogged.label.news" /></h3>
<h5><bean:message key="homelogged.label.latest" /></h5>
<c:forEach var="listElement" items="${requestScope.listNews}">
	<dl>
		<dt><span class="date"> <span class="pub-month">
		${listElement.creation_date} </span> <span class="pub-date"> </span> </span></dt>
		<dd>
		<h5><a
			href="<c:url value="/news/news_list.do?id=${listElement.id}"/>">${listElement.title}</a></h5>
		descrizione <str:substring start="0" end="250">
			<p>${listElement.description}</p>
		</str:substring></dd>
	</dl>
</c:forEach>
<p class="left"><span class="bullet"> <a
	href="<c:url value="/news/news_list.do"/>"><bean:message
	key="homelogged.label.morenews" /></a> </span></p>
<p class="right"><a href="<c:url value="/news/news_rss.do"/>"
	class="feed">RSS</a></p>
</div>
<div id="gifttip">
<h3><bean:message key="homelogged.label.gift" /></h3>
<h5><bean:message key="homelogged.label.present" /></h5>
<h4><a
	href="<c:url value="/gift/gift_ideas.do?id=${requestScope.gift.id}"/>">${requestScope.gift.name}</a></h4>

<str:substring start="0" end="250">
	<p>${requestScope.gift.description}</p>
</str:substring>
<p class="price">$ <strong>${requestScope.gift.price}</strong> <bean:message
	key="homelogged.label.at" />at <a href="${requestScope.gift.link}">${requestScope.gift.link_name}</a>
</p>
<div class="clearall"></div>
<p><span class="bullet"> <a
	href="<c:url value="/gift/gift_ideas.do"/>"><bean:message
	key="homelogged.label.moregift" /></a> </span></p>
</div>
</div>
<div class="clearall"></div>
</div>
</div>
<!-- Closes #content -->
